<?php
namespace app\index\validate;

use think\Validate;

class Customer extends Validate
{
    // 验证规则
    protected $rule = [
        'name' => 'require|min:5|token',
        'email'    => 'require|email',
        'mobile'  => 'require|min:11|max:11|token'
    ];
}